import React from 'react';

import styles from './style.module.scss';

export default function Toggle(props) {
    let { active } = props;
    return (
        <div className={`${styles.toggle} ${active ? styles.active : ''}`}>
            {props.children}
        </div>
    )
}